package cn.hbwe.Dto;


import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class pLoginDTO {

    @Length(min = 6,message = "密码太短啦")
    private String patientPassword;

//    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$",message = "手机号格式不对")

    @NotBlank(message = "账号不能为空")
    @Length(max = 11, message = "账号长度不能超过11位")
    @Length(min = 6,message = "账号长度不能小于6位")
    @Pattern(regexp = "^[A-Za-z0-9]+$",message = "账号只能包含字母和数字")
    private String patientAccount;
}
